const app  = {
	state:{
		sidebar: {
			opened: false   //菜单状态  true   关闭    false 展开
		}
	},
	//mutations
	mutations: {
		TOGGLE_SIDEBAR: (state) => {
				state.sidebar.opened = !state.sidebar.opened
		}
	},

	actions: {
		TOGGLE_SIDEBAR_AC: ({ commit }) => {
				//提交
				commit("TOGGLE_SIDEBAR");
		}
	}
}

export default app;